package com.sys.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云OSS配置类
 */
@Configuration
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
public class OssConfig {
    /**
     * 是否启用OSS存储
     */
    private boolean enabled = false;

    /**
     * OSS访问密钥ID
     */
    private String accessKeyId;

    /**
     * OSS访问密钥Secret
     */
    private String accessKeySecret;

    /**
     * OSS服务端点
     */
    private String endpoint;

    /**
     * OSS存储桶名称
     */
    private String bucketName;

    /**
     * OSS文件访问域名
     */
    private String domain;

    /**
     * OSS文件存储路径前缀
     */
    private String prefix = "task-photos/";
}








